#ifndef __RESOURCE_H__
#define __RESOURCE_H__

#if GP_UI == General_UI
#include "resource_general.h"
#elif GP_UI == Touch_UI
#include "resource_touch.h"
#endif

#define ASCII_FONT_WIDTH				0x0B
#define ASCII_FONT_HEIGHT				0x13

#if(defined(C_ZHONGQIN_SPECIAL) && (C_ZHONGQIN_SPECIAL == CUSTOM_ON))

#define RECORD_CLOCK_POS_X				4//(-200)
#define RECORD_CLOCK_POS_Y				(-22)
#define RECORD_TIMER_POS_X				(32 + 8)//(-88 - 60) //skip hour
#define RECORD_TIMER_POS_Y				4
#define RECORD_PARK_POS_X				160 - 70
#define RECORD_PARK_POS_Y				24

// anchor from top-right of icon
#define RECORD_RESV_POS_X				(-5)
#define RECORD_RESV_POS_Y				66

#else

#define RECORD_CLOCK_POS_X				4+10//(-232) // 
#define RECORD_CLOCK_POS_Y				(-23)
#define RECORD_TIMER_POS_X				24+10 //(-96)
#define RECORD_TIMER_POS_Y				1+5 // 4
#define RECORD_PARK_POS_X				160
#define RECORD_PARK_POS_Y				2

// anchor from top-right of icon
#define RECORD_RESV_POS_X				(-5)
#define RECORD_RESV_POS_Y				36

#endif


// anchor from top-right of icon
#define CAPTURE_RESV_POS_X				(-10)
#define CAPTURE_RESV_POS_Y				36
// anchor from top-right of icon
#define CAPTURE_LEFT_NUM_POS_X			24+10 //(3)//268//(-10)
#define CAPTURE_LEFT_NUM_POS_Y			1+5

#define BROWSE_FILE_TIME_POS_X			(-96)
#define BROWSE_FILE_TIME_POS_Y			(-32)
#define BROWSE_FILE_NAME_COLOR			0xffff//0xFFE0

#if(defined(C_ZHONGQIN_SPECIAL) && (C_ZHONGQIN_SPECIAL == CUSTOM_ON))
#define BROWSE_FILE_NAME_POS_X			60
#define BROWSE_RESV_POS_Y				36
#else
#define BROWSE_FILE_NAME_POS_X		3//	120
#define BROWSE_RESV_POS_Y				36
#endif

#define BROWSE_FILE_NAME_POS_Y		40//	6
// anchor from top-right of icon
#define BROWSE_RESV_POS_X				(-10)


#define SETTING_BACKGROUND_TOP_HEIGHT         25    // 1 * 20 = 20
#define SETTING_BACKGROUND_MIDDLE_HEIGHT     2	  // 5 * 4  = 20
#define SETTING_BACKGROUND_SELECT_BAR_HEIGHT     	  41   // 5 * 40 = 200

#define SETTING_BACKGROUND_TOP_COLOR       			0x0000
#define SETTING_BACKGROUND_MIDDLE_COLOR 			0x000f
#define SETTING_BACKGROUND_SELECT_BAR_COLOR     	  	0x8431

#define SETTING_BACKGROUND_WIDTH		320
#define SETTING_BACKGROUND_HEIGHT		240

#define SETTING_SELECT_BAR_WIDTH		296
#define SETTING_SELECT_BAR_HEIGHT		40
#define SETTING_SELECT_BAR_POS_X		0
#define SETTING_SELECT_BAR_POS_Y		50

#define SETTING_TOP_BAR_WIDTH			48
#define SETTING_TOP_BAR_HEIGHT			32
#define SETTING_TOP_BAR_POS_X			13
#define SETTING_TOP_BAR_POS_Y			10

#define SETTING_BACKGROUND_MODE_WIDTH	64
#define SETTING_BACKGROUND_MODE_HEIGHT	32

#define SETTING_BACKGROUND_MODE_POS_X	13
#define SETTING_BACKGROUND_MODE_POS_Y	(SETTING_BACKGROUND_HEIGHT - SETTING_BACKGROUND_MODE_HEIGHT - 2)

#define SETTING_BACKGROUND_LEFT_WIDTH	32
#define SETTING_BACKGROUND_LEFT_HEIGHT	32
#define SETTING_BACKGROUND_LEFT_POS_X	(SETTING_BACKGROUND_MODE_POS_X + 110)
#define SETTING_BACKGROUND_LEFT_POS_Y	(SETTING_BACKGROUND_MODE_POS_Y)

#define SETTING_SELECTBOX_SUB_WIDTH		256
#define SETTING_SELECTBOX_SUB_HEIGHT	160
#define SETTING_SELECTBOX_SUB_POS_X		(50 + 5)
#define SETTING_SELECTBOX_SUB_POS_Y		46

#define SETTING_SELECTBAR_MIDD_WIDTH	216
#define SETTING_SELECTBAR_MIDD_HEIGHT	32
#define SETTING_SELECTBAR_MIDD_POS_X	(SETTING_SELECTBOX_SUB_POS_X + ((SETTING_SELECTBOX_SUB_WIDTH - SETTING_SELECTBAR_MIDD_WIDTH) >> 1))
#define SETTING_SELECTBAR_MIDD_POS_Y	(SETTING_SELECTBOX_SUB_POS_Y + 32)

#define SETTING_YEAR_SELECTBAR_WIDTH	64
#define SETTING_YEAR_SELECTBAR_HEIGHT	32
#define SETTING_YEAR_SELECTBAR_POS_X	(SETTING_SELECTBOX_SUB_POS_X + 30)
#define SETTING_YEAR_SELECTBAR_POS_Y	(SETTING_SELECTBOX_SUB_POS_Y + 32)

#define SETTING_DAY_SELECTBAR_WIDTH		32
#define SETTING_DAY_SELECTBAR_HEIGHT	32
#define SETTING_DAY_SELECTBAR_POS_X		(SETTING_SELECTBOX_SUB_POS_X + 30)
#define SETTING_DAY_SELECTBAR_POS_Y		(SETTING_SELECTBOX_SUB_POS_Y + 70)

#define SETTING_HEAD_WIDTH				32
#define SETTING_HEAD_HEIGHT				32
#define SETTING_HEAD_POS_X				8//18
#define SETTING_HEAD_POS_Y				(SETTING_BACKGROUND_MIDDLE_HEIGHT + SETTING_BACKGROUND_TOP_HEIGHT)//53

extern const INT16U *icon_table[];
extern const INT16U *number_table[];
extern const INT16U *number_table_big[];

extern INT16U icon_capture[];
extern INT16U icon_video[];
extern INT16U icon_review[];
extern INT16U icon_base_setting[];
extern INT16U thumbnail_cursor_3x3_96x64[];
extern INT16U thumbnail_cursor_3x3_black_96x64[];
extern INT16U icon_background_up[];
extern INT16U icon_background_down[];
extern INT16U icon_background_ok[];
extern INT16U icon_background_mode[];
extern INT16U ui_up[];
extern INT16U ui_down[];

extern DISPLAY_ICONSHOW display_icon_item[];
extern DISPLAY_ICONSHOW display_num_item[];
extern DISPLAY_ICONSHOW display_num_item_big[];

extern const INT16U *setting_record_table[];
extern const INT16U *setting_capture_table[];
extern const INT16U *setting_play_table[];
extern const INT16U *setting_base_table[];

extern const INT16U *setting_icon_unflod_table[];
extern const INT16U * setting_icon_time_stamp[];

extern DISPLAY_ICONSHOW display_icon_item[];

extern void recource_icon_init(void);

#endif // __RESOURCE_H__
